#!/bin/bash

event_log_file=/home/typecast/results/logs/event_log.txt
ts=`date +%F-%T`
echo "$ts starting event logger" > $event_log_file
echo -n "$ts starting event logger, enter to record next event:"

id=1
while true;  do
   read cmd
   ts=`date +%F-%T`
   echo "$ts event[$id]" >> $event_log_file
   echo -n "$ts event[$id], enter to record next event"
   let id++;
done
